<script>
layui.use(['jquery', 'layer', 'element', 'form'], function(){
	var $ = layui.jquery, layer = layui.layer,element = layui.element, form = layui.form;

	#if(flashMsg)
		layer.msg("#(flashMsg)");
	#end

	form.on('switch', function(data) {
	    $("#ID_cdn_enable").val(data.elem.checked ? 'true' : 'false');
	});

});
</script>